package com.css.zfzx.sjcj.modules.qhriskvisualshow.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.sjcj.modules.qhriskvisualshow.repository.entity.QhProbabilityEarthquakeDangerEntity;
import com.css.zfzx.sjcj.modules.qhriskvisualshow.viewobjects.QhProbabilityEarthquakeDangerQueryParams;

import java.util.List;

/**
 * @author andy
 * @date 2021-01-26
 */

public interface QhProbabilityEarthquakeDangerService {

    public JSONObject queryQhProbabilityEarthquakeDangers(QhProbabilityEarthquakeDangerQueryParams queryParams, int curPage, int pageSize);

    public JSONObject queryQhProbabilityEarthquakeDangersByFileName(QhProbabilityEarthquakeDangerQueryParams queryParams, int curPage, int pageSize, String sort, String order);

    public QhProbabilityEarthquakeDangerEntity getQhProbabilityEarthquakeDangerById(String id);

    public QhProbabilityEarthquakeDangerEntity saveQhProbabilityEarthquakeDanger(QhProbabilityEarthquakeDangerEntity qhSiteClassResult);

    public QhProbabilityEarthquakeDangerEntity updateQhProbabilityEarthquakeDanger(QhProbabilityEarthquakeDangerEntity qhSiteClassResult);

    public void deleteQhProbabilityEarthquakeDangers(List<String> ids);

    public JSONObject getQhProbabilityEarthquakeDangers(QhProbabilityEarthquakeDangerQueryParams queryParams);

    public JSONObject searchQhProbabilityEarthquakeDangers(QhProbabilityEarthquakeDangerQueryParams queryParams);

    public void saveOrUpdate(QhProbabilityEarthquakeDangerEntity scrEntity);

    public String judgeFileParams(String[] datas);

    public int deleteQhProbabilityEarthquakeDangersByFileName(List<String> fileNames, String province) throws Exception;

    public int lookUpQhProbabilityEarthquakeDangers(QhProbabilityEarthquakeDangerQueryParams queryParams, boolean isNewTable);

    //校验
    public String checkSHPFiles(String filePath, String province, String city, String area);

    //保存
    public String newImportShapeFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);

    //校验GDB文件
    public String checkGDBFiles(String filePath, String province, String city, String area);

    //保存GDB文件
    public String newImportGDBFile(String filePath, String province, String city, String area, String createUser,String codeType,int dataLength);
}